FROM golang:1.17-alpine AS build 
RUN apk add libc6-compat
WORKDIR /go/src/project/
COPY ./cloudnative /go/src/project/
RUN go build -o /bin/project

FROM scratch
COPY --from=build /bin/project /bin/project
ENTRYPOINT ["/bin/project"]
